import NotFound from '../views/notFound'
import marketRoutes from './market.js'
import profileRoutes from './profile.js'
import knowledgeRoutes from './knowledge.js'
import homeRoutes from './home.js'
import groupRoutes from './group.js'

const routes = [
  /* 入口重定向 */
  { path: '/', redirect: '/home' },

  ...homeRoutes,
  ...groupRoutes,
  ...marketRoutes,
  ...profileRoutes,
  ...knowledgeRoutes,

  { path: '*', component: NotFound } /* 404 页面 */
]

export default routes
